#include<bits/stdc++.h>
#define ll long long
using namespace std;
int n,a[100005],ans;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    ios::sync_with_stdio(false);

    cin>>n;
    ans=n;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
    }
    sort(a+1,a+1+n);
    for(int i=1,j=2;j<=n;j++)
    {
        if(a[i]<a[j])
        {
            i++;
            ans--;
        }
    }
    cout<<ans;
    return 0;
}
